package com.alvin.abp.web.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.alvin.abp.domain.AlvinUser;
/**   
 * 
 * @author <a href="mailto:rex2.mj@gmail.com">Leo Meng</a>
 * @date $Date: Mar 25, 2013 $
 */
@Controller
public class AuthController {
	
	protected final Log logger = LogFactory.getLog(getClass());
	
	@RequestMapping(value = "/login.htm", method = RequestMethod.GET)
	public String login(ModelMap model) {
		AlvinUser user = new AlvinUser();
		model.addAttribute("user", user);
		return "login";
	}
	
	@RequestMapping(value = "/home.htm", method = RequestMethod.GET)
	public String home() {
		return "redirect:collect.htm";
	}
	
}
